
Object.prototype.TenToTwo = (sum)=>{
    let result = ''
    const stack = new Stack()
    while(sum>0){
        stack.push(sum%2);
        sum = parseInt(sum/2)
    }
    while(!stack.isEmpty()){
        result+=stack.pop()
    }
    
    return parseInt(result)
}